﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddServiceBulletin.ascx.vb" Inherits="WebForm_ManageBulletin_AddServiceBulletin"  %>
<asp:FormView ID="fv" runat="server" DefaultMode="Insert" >
    <ItemTemplate>
        <table>
           <tr>
                <td align="right">
                    <asp:Label ID="lblServiceSubject" runat="server" meta:resourcekey="lblServiceSubject"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtServiceSubject" runat="server"  Text='<%# Bind("ServiceSubject") %>'></asp:TextBox>
                </td>
           </tr>
           <tr>
                <td align="right">
                    <asp:Label ID="lblOrganization" runat="server" meta:resourcekey="lblOrganization"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlOrganization" runat="server"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblServiceTime" runat="server" meta:resourcekey="lblServiceTime"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtStartDate" runat="server" Text='<%# Bind("StartDate", "{0:yyyy/MM/dd}") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvStartDate" runat="server" Display="None" ControlToValidate="txtStartDate" meta:resourcekey="rfvStartDate" ValidationGroup="vSBInsert"></asp:RequiredFieldValidator>
                    <ajaxToolkit:CalendarExtender ID="ceStartDate" runat="server" TargetControlID="txtStartDate"></ajaxToolkit:CalendarExtender>~
                    <asp:TextBox ID="txtEndDate" runat="server" Text='<%# Bind("EndDate", "{0:yyyy/MM/dd}") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvEndDate" runat="server" Display="None" ControlToValidate="txtEndDate" meta:resourcekey="rfvEndDate" ValidationGroup="vSBInsert"></asp:RequiredFieldValidator>
                    <ajaxToolkit:CalendarExtender ID="ceEndDate" runat="server" TargetControlID="txtEndDate"></ajaxToolkit:CalendarExtender> 
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblItemType" runat="server" meta:resourcekey="lblItemType"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlItemType" runat="server"></asp:DropDownList>
                </td>
           </tr>
           <tr>
               <td align="right">
                    <asp:Label ID="lblPeopleCount" runat="server" meta:resourcekey="lblPeopleCount"></asp:Label>
               </td>
               <td align="left">
                    <asp:TextBox ID="txtPeopleCount" runat="server" Text='<%# Bind("PeopleCount") %>'></asp:TextBox>
                    <asp:CompareValidator ID="cpvPeopleCount" meta:resourcekey="cpvPeopleCount" runat="server" ControlToValidate="txtPeopleCount" Display="None" Operator="DataTypeCheck" Type="Integer" ValidationGroup="vSBInsert"></asp:CompareValidator>
               </td>
           </tr>
           <tr>
               <td align="right">
                    <asp:Label ID="lblContact" runat="server" meta:resourcekey="lblContact"></asp:Label>
               </td>
               <td align="left">
                    <asp:TextBox ID="txtContact" runat="server" Text='<%# Bind("Contact") %>'></asp:TextBox>
               </td>
           </tr>
           <tr>
               <td align="right">
                    <asp:Label ID="lblPhoneNumber" runat="server" meta:resourcekey="lblPhoneNumber"></asp:Label>
               </td>
               <td align="left">
                    <asp:TextBox ID="txtPhoneNumber" runat="server" Text='<%# Bind("PhoneNumber") %>'></asp:TextBox>
               </td>
           </tr>
            <tr>
               <td align="right">
                    <asp:Label ID="lblEmail" runat="server" meta:resourcekey="lblEmail"></asp:Label>
               </td>
               <td align="left">
                    <asp:TextBox ID="txtEmail" runat="server" Text='<%# Bind("Email") %>'></asp:TextBox>
               </td>
           </tr>
           <tr>
                <td align="right">
                    <asp:Label ID="lblServiceContent" runat="server" meta:resourcekey="lblServiceContent"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtServiceContent" runat="server"  TextMode="MultiLine" Rows="5" Columns="50" Text='<%# Bind("ServiceContent") %>'></asp:TextBox>
                </td>
           </tr>
           <tr>
                <td align="right">
                </td>
                <td align="left">
                    <asp:Button ID="btnSave" runat="server" meta:resourcekey="btnSave" CommandName="btnSave" ValidationGroup="vSBInsert" />
                    <ajaxToolkit:ConfirmButtonExtender ID="cbSave" runat="server" TargetControlID="btnSave" meta:resourcekey="cbSave"></ajaxToolkit:ConfirmButtonExtender>
                </td>
            </tr>        
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
        ShowSummary="false" ValidationGroup="vSBInsert" />
    </ItemTemplate>
</asp:FormView>